﻿// =================================================================== 
// 项目说明
//====================================================================
// SunCity@Copy Right 2006-2008
// 文件： Product.cs
// 项目名称：
// 创建时间：2015/3/18
// 负责人：
// ===================================================================
using System;
namespace EMS20.Entity
{
	/// <summary>
	///Product数据实体
	/// </summary>
	[Serializable]
	public class ProductEntity
	{
		#region 变量定义
		///<summary>
		///产品id
		///</summary>
		private int _p_id;
		///<summary>
		///编号
		///</summary>
		private string _p_photo_no = String.Empty;
		///<summary>
		///标题
		///</summary>
		private string _p_title = String.Empty;
		///<summary>
		///类别ID
		///</summary>
		private int _category_id;
		///<summary>
		///图片
		///</summary>
		private string _img_url = String.Empty;
		///<summary>
		///详细介绍
		///</summary>
		private string _p_content = String.Empty;
		///<summary>
		///排序
		///</summary>
		private int _sort_id;
		///<summary>
		///点击率
		///</summary>
		private int _click;
		///<summary>
		///发布时间
		///</summary>
		private DateTime _add_time = Convert.ToDateTime("1900 - 1 - 1");
		///<summary>
		///是否不显示 0：显示 1：不显示
		///</summary>
		private byte _is_lock;
		#endregion
		
		#region 构造函数
		///<summary>
		///
		///</summary>
		public ProductEntity()
		{
		}
		///<summary>
		///
		///</summary>
		public ProductEntity
		(
			int p_id,
			string p_photo_no,
			string p_title,
			int category_id,
			string img_url,
			string p_content,
			int sort_id,
			int click,
			DateTime add_time,
			byte is_lock
		)
		{
			_p_id        = p_id;
			_p_photo_no  = p_photo_no;
			_p_title     = p_title;
			_category_id = category_id;
			_img_url     = img_url;
			_p_content   = p_content;
			_sort_id     = sort_id;
			_click       = click;
			_add_time    = add_time;
			_is_lock     = is_lock;
			
		}
		#endregion
		
		#region 公共属性
		
		///<summary>
		///产品id
		///</summary>
		public int p_id
		{
			get {return _p_id;}
			set {_p_id = value;}
		}

		///<summary>
		///编号
		///</summary>
		public string p_photo_no
		{
			get {return _p_photo_no;}
			set {_p_photo_no = value;}
		}

		///<summary>
		///标题
		///</summary>
		public string p_title
		{
			get {return _p_title;}
			set {_p_title = value;}
		}

		///<summary>
		///类别ID
		///</summary>
		public int category_id
		{
			get {return _category_id;}
			set {_category_id = value;}
		}

		///<summary>
		///图片
		///</summary>
		public string img_url
		{
			get {return _img_url;}
			set {_img_url = value;}
		}

		///<summary>
		///详细介绍
		///</summary>
		public string p_content
		{
			get {return _p_content;}
			set {_p_content = value;}
		}

		///<summary>
		///排序
		///</summary>
		public int sort_id
		{
			get {return _sort_id;}
			set {_sort_id = value;}
		}

		///<summary>
		///点击率
		///</summary>
		public int click
		{
			get {return _click;}
			set {_click = value;}
		}

		///<summary>
		///发布时间
		///</summary>
		public DateTime add_time
		{
			get {return _add_time;}
			set {_add_time = value;}
		}

		///<summary>
		///是否不显示 0：显示 1：不显示
		///</summary>
		public byte is_lock
		{
			get {return _is_lock;}
			set {_is_lock = value;}
		}
	
		#endregion
		
	}
}
